
const state = {
  isLogin: null,
  token:'',
  userInfo: {},
};
const getters = {
  checkHasBridgeFuc: (state) => {
    return (query) => state.bridgeQuery.indexOf(query) > 0;
  },
};
const mutations = {
  [`user/isLogin`]: function(state, s) {
    state.isLogin = s;
  },
  [`user/token`]: function(state, s) {
    state.token = s;
  },
  [`user/userInfo`]: function(state, s) {
    state.userInfo = s;
  },
};
const actions = {
  // reload({ commit, dispatch }) {
  //   return new Promise((resolve, reject) => {
  //     GetActiveStatus({ needUserParams: true });
  //     resolve();
  //   });
  // },
};
export default {
  state,
  getters,
  mutations,
  actions,
};
